const app = getApp()

Page({
  data: {
    imageXuanzhuan: true,
    renderObj: [],
  },
  perDetails: function (e) {//跳转到用户详情
    var userid = e.currentTarget.dataset.userid;
    wx.navigateTo({
      url: '../../pages/memberDetails/memberDetails?userid='+userid,
    })
  },
  onLoad: function (opt) {
    var _this = this;
    wx.setNavigationBarTitle({
      title: '每日速配',
    });
    this.initPage(opt);
  },
  initPage: function (opt) {
    var _this = this;
    app.doReq(app.globalData.SERVICE.INDEX.LISTSP, { id: app.globalData.userid }, 'GET', function (res) {
      _this.setData({
        renderObj: res.data.pageitems,
      });
    });
  },
});